/* eslint-disable */
(function(window) {
  var Calc = (function() {
    function Calc() {}
  })

  Calc.sum = function(num1, num2, fixed) {
    if (isNaN(num1) || isNaN(num2)) {
      throw new Error('arguments type error')
    }
    if (isNaN(fixed) || fixed < 0) {
      fixed = 2
    }
    return Number(Number(num1) + Number(num2)).toFixed(2)
  }

  if (!window.Calc) {
    window.Calc = Calc
  }
})(window)